MPHB\Entities\Coupon B

Total Complexity 100
Dependencies 4
Dependents 4
Total lines 605
Lines of code 249
Logical lines of code 144
Comment lines 234
Methods 37
Properties 22

Methods 37

Method Rating Maintainability Complexity Lines of code
isValidForBookingContents()
C
36 32 68
__construct()
A
49 12 24
validate()
A
57 9 15
calcRoomDiscount()
S
54 5 21
calcServiceDiscount()
S
60 3 14
calcFeeDiscount()
S
60 3 14
isApplicableForFee()
S
78 2 3
isExceedUsageLimit()
S
79 2 3
isApplicableForService()
S
78 2 3
isApplicableForRoomType()
S
78 2 3
isExpired()
S
78 2 3
getServiceDiscountType()
S
83 1 3
getMaxNights()
S
83 1 3
getStatus()
S
83 1 3
getCode()
S
83 1 3
increaseUsageCount()
S
82 1 3
getUsageCount()
S
82 1 3
getDescription()
S
83 1 3
isPublished()
S
80 1 3
getRoomDiscountType()
S
83 1 3
getUsageLimit()
S
83 1 3
getMinNights()
S
83 1 3
getFeeDiscountType()
S
83 1 3
getMaxDaysBeforeCheckIn()
S
83 1 3
getMinDaysBeforeCheckIn()
S
83 1 3
getId()
S
83 1 3
getCheckInDateAfter()
S
83 1 3
getRoomTypes()
S
83 1 3
getExpirationDate()
S
83 1 3
getApplicableFeeIds()
S
83 1 3
getApplicableServiceIds()
S
83 1 3
getApplicableRoomTypeIds()
S
82 1 3
getFeeAmount()
S
83 1 3
getServiceAmount()
S
83 1 3
getRoomAmount()
S
83 1 3
getAmount()
S
82 1 3
getCheckOutDateBefore()
S
83 1 3